﻿@model IEnumerable<SoftHotel.Models.Invitado>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table width="100%" rules="all" border="1" style="border-color: Black; width: 900px; margin-bottom: 0px;">
    <tr align="center">
        
        <th>
            Nombre
        </th>
        <th>
            Apellido Paterno
        </th>
        <th>
            Apellido Materno
        </th>
        <th>
            Tipo de Documento
        </th>
        <th>
            Numero de Documento
        </th>
       
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr align="center">
        
        <td>
            @Html.DisplayFor(modelItem => item.nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.apePaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.aperMaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tipoDoc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.numeroDocumento)
        </td>
       
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.idInvitado }) |
            
            @Html.ActionLink("Delete", "Delete", new {  id=item.idInvitado })
        </td>
    </tr>
}

</table>
